<?php

class PublicAction extends Action {

    public function _initialize() {
        $this->header();
        //$this->topnav();
        $this->footer();
    }

    public function topnav() {
        $Classes = D('Classes');
        $navigation = $Classes->getList(array('class_pid' => 0));
        array_unshift($navigation, array('class_id' => null, 'class_name' => '首页', 'class_model' => 'Index'));
        $this->assign('navigation', $navigation);
    }

    public function header() {
    }

    public function footer() {
        
    }

}
